import { S } from '../../s';
import { IPSAppDEEditView } from './ipsapp-deedit-view';
import { PSAppDEXDataViewImpl } from './psapp-dexdata-view-impl';

export class PSAppDEEditViewImpl
  extends PSAppDEXDataViewImpl
  implements IPSAppDEEditView
{
  get multiFormMode(): number {
    return this.M.multiFormMode != null ? this.M.multiFormMode : 0;
  }

  get enableWF(): boolean {
    return this.M.enableWF != null ? this.M.enableWF : false;
  }

  get hideEditForm(): boolean {
    return this.M.hideEditForm != null ? this.M.hideEditForm : false;
  }

  get showCaptionBar(): boolean {
    return this.M.showCaptionBar != null ? this.M.showCaptionBar : true;
  }

  get showDataInfoBar(): boolean {
    return this.M.showDataInfoBar;
  }
  get cls(): string {
    return 'PSAppDEEditViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._46 || cls == S._47) return true;
    return super.instanceof(cls);
  }
}
